package com.ruoyi.mapper;

import java.util.List;
import com.ruoyi.domain.CarConsumptionRecord;

/**
 * 消费记录Mapper接口
 * 
 * @author ruoyi
 * @date 2025-01-27
 */
public interface CarConsumptionRecordMapper 
{
    /**
     * 查询消费记录
     * 
     * @param id 消费记录主键
     * @return 消费记录
     */
    public CarConsumptionRecord selectCarConsumptionRecordById(Integer id);

    /**
     * 查询消费记录列表
     * 
     * @param carConsumptionRecord 消费记录
     * @return 消费记录集合
     */
    public List<CarConsumptionRecord> selectCarConsumptionRecordList(CarConsumptionRecord carConsumptionRecord);

    /**
     * 新增消费记录
     * 
     * @param carConsumptionRecord 消费记录
     * @return 结果
     */
    public int insertCarConsumptionRecord(CarConsumptionRecord carConsumptionRecord);

    /**
     * 修改消费记录
     * 
     * @param carConsumptionRecord 消费记录
     * @return 结果
     */
    public int updateCarConsumptionRecord(CarConsumptionRecord carConsumptionRecord);

    /**
     * 删除消费记录
     * 
     * @param id 消费记录主键
     * @return 结果
     */
    public int deleteCarConsumptionRecordById(Integer id);

    /**
     * 批量删除消费记录
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCarConsumptionRecordByIds(Integer[] ids);
}
